import {messages} from "share/common";
import invoiceEn from 'images/expense/invoice-en.png';
import processEn from 'images/expense/process-en.png';
import invoice from 'images/expense/invoice.png';
import process from 'images/expense/process.png';
import { Radio, Checkbox } from 'antd';
import React from 'react';

const printEnabledOptions = [
  {
    value: false,
    label: messages('expense-7.key6')/*不启用*/
  },
  {
    value: true,
    label: messages('expense-7.key7')/*启用temp*/
  }
];


const PrintConditionsOptions = [
  {
    value: 'INVOICE_FAPIAO_PASTE_FREE',
    label: messages('expense-7.key8')/*费用免贴票*/
  },
  {
    value: 'EXPENSE_REPORT_AUTO_AUDITED',
    label: messages('expense-7.key9')/*费用自动审核通过*/
  }
];

const faPiaoPasteOptions = [
  {
    value: 'INVOICE_LABEL_CONTAINS_WITH_OUT_FAPIAO',
    label:messages('expense-7.key10')/*费用标签包含“无票”*/
  },
  {
    value: 'INVOICE_LABEL_CONTAINS_COMPANY_PAY',
    label: messages('expense-7.key11')/*费用标签包含“公司已付”*/
  },
  {
    value: 'INVOICE_WITH_PDF_FILE',
    label: messages('expense-7.key12')/*费用关联的发票均为含有（未损坏的）PDF/OFD 原件的增值税电子发票*/
  },
  {
    value: 'INVOICE_FAPIAO_CHECKPASS_TYPE_VAT',
    label: messages('expense-7.key13')/*费用关联的发票均为查验成功的增值税电子普通发票*/
  },
  {
    value: 'WEB_INVOICE_FAPIAO_NOTICKET',
    disabled: true,
    label: messages('expense-7.key14')/*费用关联的发票类型均为无票*/
  }
];

export const formList = [
  {
    name: messages('expense-7.key15')/*报销单免打印*/,
    extra: messages('expense-7.key16')/*启用免打印，则需要设置免打印条件，满足条件会将报销单标记为“免打印”，员工无需打印报销单*/,
    dataIndex: 'expenseReportPrintFreeEnabled',
    component: Radio.Group,
    initValue: false,
    required: false,
    params: {
      options: printEnabledOptions
    }
  },
  {
    name: messages('expense-7.key17')/*免打印条件*/,
    extra:<div> {messages('expense-7.key18')/*仅勾选“费用免贴票”，则报销单上的所有费用均含免贴票标签时，报销单免打印;*/} <br/>
      {messages('expense-7.key19')/*仅勾选“费用自动审核通过”，则报销单上的所有费用均自动审核通过时，报销单免打印；*/} <br/>
      {messages('expense-7.key20')/*全勾选，则报销单上的所有费用含免贴票标签或自动审核通过时，报销单免打印；*/}</div>,
    dataIndex: 'expenseReportPrintFreeConditions',
    component: Checkbox.Group,
    initValue: ['INVOICE_FAPIAO_PASTE_FREE'],
    required: true,
    params: {
      options: PrintConditionsOptions
    }
  },
  {
    name: messages('expense-7.key21')/*费用\"免贴票\"条件*/,
    extra:<div> {messages('expense-7.key22')/*上述设置项为“或”关系，费用满足勾选的一项条件，会被打上“免贴票”标签。*/} <br/>
      {messages('expense-7.key23')/*（特别说明：若同时勾选第三项和第四项，则一笔费用关联一张含PDF电子发票原件的发票和一张查验成功的增值税电子 普通发票时，费用也会打上“免贴票”标签）*/}</div>,
    dataIndex: 'faPiaoPasteFreeConditions',
    component: Checkbox.Group,
    required: true,
    initValue: ['INVOICE_LABEL_CONTAINS_WITH_OUT_FAPIAO', 'INVOICE_WITH_PDF_FILE', 'WEB_INVOICE_FAPIAO_NOTICKET'],
    params: {
      options: faPiaoPasteOptions,
      className: "print-free__checkbox_n"
    }
  }
];

export const actualScene = [
  {
    title: messages('expense-7.key24')/*员工 报销*/,
    before: messages('expense-7.key25')/*员工小王从 微信/支付宝/邮箱/发票夹 导入电子票并报销*/,
    ul: [
      messages('expense-7.key26')/*发票自动标记“免打印”*/,
      messages('expense-7.key27')/*费用自动标记“免贴票”*/,
      messages('expense-7.key28')/*报销单自动标记“免打印”*/
    ],
    after: messages('expense-7.key29')/*待审批审核通过后付款，报销款项直接汇入小王账户，期间无需提交任何纸质材料*/,
    image: invoice,
    imageEn:invoiceEn,
    className:'ad-scene'
  },
  {
    title: messages('expense-7.key30')/*财务 归档*/,
    before: messages('expense-7.key31')/*财务人员小李在汇联易PC端生成单据和电子票打印批次，完成归档*/,
    ul: [
      messages('expense-7.key32')/*电子存档：接口自动同步报销单&发票PDF原件*/,
      messages('expense-7.key33')/*纸质存档：汇联易提供自助生成批次打印发票和批量报销单功能，提供【发票批次报表】，可查询发票批次打印件与报销单号对应关系*/,
    ],
    image: process,
    imageEn:processEn,
    className:'ad-scene_second'
  }
];
